package com.yfp.client.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 账号余额展示类
 */
@Data
public class ClientBalanceVO implements Serializable {

    private static final long serialVersionUID = -5592222480774645142L;

    /**
     * 总金额
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    @Schema(description = "总金额")
    private BigDecimal totalBalance;

    /**
     * 充值余额
     */
    @JsonSerialize(using = BigDecimalSerializer.class, nullsUsing = BigDecimalSerializer.class)
    @Schema(description = "充值余额")
    private BigDecimal balance;

    /**
     * 赠送金
     */
    @JsonSerialize(using = BigDecimalSerializer.class, nullsUsing = BigDecimalSerializer.class)
    @Schema(description = "赠送金")
    private BigDecimal giftGold;

    /**
     * 首充判断
     */
    @Schema(description = "首充判断：1首充,0不是首充")
    private Integer firstStored;
}
